<!DOCTYPE html>
<!-- saved from url=(0043)http://androidzh.com/games/wxcat/?shouyoutu -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>我拿了0分，战胜了0个汪，超越了0％的好友！你能超过我吗</title>
    <link rel="icon" type="image/GIF" href="http://androidzh.com/games/wxcat/res/favicon.ico">
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="screen-orientation" content="portrait">
    <meta name="x5-fullscreen" content="true">
    <style>
        canvas {
            image-rendering: optimizeSpeed;
            image-rendering: -moz-crisp-edges;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: -o-crisp-edges;
            image-rendering: optimize-contrast;
            -ms-interpolation-mode: nearest-neighbor;
        }

        body, canvas, div {
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            -khtml-user-select: none;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }
        html, body{
            height: 100%;
            width: 100%;
        }
        body{
            margin: 0;
            padding: 0;
            overflow: hidden;
            background: #000;
        }
        .a-header{
            height: 50px;
            position: absolute;
            top: 0;
            width: 100%;
            animation: showAD 1s;
            -webkit-animation: showAD 1s;
            z-index: 1;
        }
        .a-header.hide{
            top: -50px;
            animation: hideAD 1s;
            -webkit-animation: hideAD 1s;
        }
        .a-header .main{
            width: 100%;
            height: 100%;
            position: relative;
        }
        .a-header .main div, .a-header .main span{
            position: absolute;
            bottom: 0;
            height: 100%;
            width: 100%;
        }
        .a-header .background{
            background: #000;
            opacity: 0.6;
        }
        .a-header .main .close{
            display: block;
            width: 22px;
            height: 22px;
            background: url("./res/close_ico.png");
            background-size: 22px auto;
            right: 15px;
            top: 50%;
            margin-top: -11px;
            cursor: pointer;
        }

        @keyframes hideAD{
            from {top: 0;}
            to {top: -50px;}
        }
        @-webkit-keyframes hideAD{
            from {top: 0;}
            to {top: -50px;}
        }
        @keyframes showAD{
            from {top: -50px;}
            to {top: 0;}
        }
        @-webkit-keyframes showAD{
            from {top: -50px;}
            to {top: 0;}
        }
    </style>

    <script>
        (function() {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?cf6e56197d15d6d01685b29c92d56831";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body>

    <header class="a-header">
        <div class="main">
            <div class="background"></div>
            <div class="img" style="text-align: center;">
                <style>
                    .img input{padding: 10px 15px;margin: 0 20px;}
                </style>
                <input type="button" value="显示菜单" onclick="showOptionMenu()"/>
                <input type="button" value="隐藏菜单" onclick="hideOptionMenu()"/>
                <!--google广告代码-->
                <!--为防止误点以及误操作，注释了以下代码，在需要的时候清删除注释-->
                <!--<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>-->
                <!--<!— WechatGames —>-->
                <!--<ins class="adsbygoogle" style="display:inline-block;width:320px;height:50px" data-ad-client="ca-pub-8553158830227934" data-ad-slot="5468081663"></ins>-->
                <!--<script>-->
                <!--(adsbygoogle = window.adsbygoogle || []).push({});-->
                <!--</script>-->
            </div>
            <span class="close" onclick="this.parentNode.parentNode.className += ' hide'"></span>
        </div>
    </header>

    <canvas id="gameCanvas" width="800" height="450"></canvas>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script>
        var href = window.location.href, base = href,
                lastpt = href.lastIndexOf("."),
                last = href.lastIndexOf("/");
        if (last != -1 && lastpt > last)
            base = base.substr(0, last);
        window.wxData = {
            "appId": "", // 服务号可以填写appId
            "imgUrl":base+'/icon.png',
            "link":href,
            "desc":"最近微信刷屏的游戏，喵的太贱了，快来感受下吧",
            "title":"最近微信刷屏的游戏，喵的太贱了，快来感受下吧"
        };
        window.wxFriend = {
            "appId": "", // 服务号可以填写appId
            "imgUrl":base+'/icon.png',
            "link":href,
            "desc":'最近微信刷屏的游戏，喵的太贱了，快来感受下吧',
            "title":"最近微信刷屏的游戏《来自喵星的你》，喵的太贱了，快来感受下吧"
        };
        window.wxReady = false;

        (function(ws){
            ws.showOptionMenu = function(){
                if(!window.wxReady)
                    return;
                wx.showOptionMenu();
            };
            ws.hideOptionMenu = function(){
                if(!window.wxReady)
                    return;
                wx.hideOptionMenu();
            };
            ws.shareMessage = function(title, message){
                title = title || wxFriend.title;
                message = message || wxFriend.desc;
                wx.onMenuShareTimeline({
                    title: title, // 分享标题
                    link: wxFriend.link, // 分享链接
                    imgUrl: wxFriend.imgUrl, // 分享图标
                    success: function () {
                        // 用户确认分享后执行的回调函数
                        alert("喵喵感谢您！");
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });

                wx.onMenuShareAppMessage({
                    title: title, // 分享标题
                    desc: message, // 分享描述
                    link: wxFriend.link, // 分享链接
                    imgUrl: wxFriend.imgUrl, // 分享图标
                    success: function () {
                        // 用户确认分享后执行的回调函数
                        alert("喵喵感谢您！");
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });

                wx.onMenuShareQQ({
                    title: title, // 分享标题
                    desc: message, // 分享描述
                    link: wxFriend.link, // 分享链接
                    imgUrl: wxFriend.imgUrl, // 分享图标
                    success: function () {
                        // 用户确认分享后执行的回调函数
                        alert("喵喵感谢您！");
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });

                wx.onMenuShareWeibo({
                    title: title, // 分享标题
                    desc: message, // 分享描述
                    link: wxFriend.link, // 分享链接
                    imgUrl: wxFriend.imgUrl, // 分享图标
                    success: function () {
                        // 用户确认分享后执行的回调函数
                        alert("喵喵感谢您！");
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });
            };
        })(window);

        wx.config({
            debug: true,
            appId: 'wxe5a6125a5d3fb1f8',
            timestamp: 1420878660,
            nonceStr: 'VQhYOUJRz6RolHqN',
            signature: '131dda1c76a6be8edf8882c3e1273658d4c493ad',
            jsApiList: [
                'checkJsApi',
                'onMenuShareTimeline',
                'onMenuShareAppMessage',
                'onMenuShareQQ',
                'onMenuShareWeibo',
                'hideMenuItems',
                'showMenuItems',
                'getNetworkType',
                'hideOptionMenu',
                'showOptionMenu',
                'closeWindow'
            ]
        });

        wx.ready(function(){
            window.wxReady = true;
            //setup to share
            shareMessage();

            wx.getNetworkType({
                success: function (res) {
                    var networkType = res.networkType; // 返回网络类型2g，3g，4g，wifi
                    if(networkType == "2g"){
                        if(!confirm("您还在使用2g网络？流量还够吗？是否继续访问游戏？")){
                            wx.closeWindow();
                        }
                    } else if(networkType == "3g"){
                        alert("您正在使用3G网络访问喵,速度还行吗？");
                    } else if(networkType == "4g"){
                        alert("哇，您正在使用4G网络访问喵，快吗？");
                    } else if(networkType == "wifi"){
                        alert("您当前正在使用wifi, 喵喵再也不用担心流量了哟！");
                    } else {
                        alert("来自星星的你，使用的是什么网络呢？");
                    }
                }
            });

            wx.showMenuItems({
                menuList: [
                    "menuItem:refresh",
                    "menuItem:profile",
                    "menuItem:addContact",
                    "menuItem:share:appMessage",
                    "menuItem:share:timeline",
                    "menuItem:share:qq",
                    "menuItem:share:weiboApp",
                    "menuItem:favorite"
                ] // 要显示的菜单项，所有menu项见附录3
            });

            wx.hideMenuItems({
                menuList: [
                    "menuItem:dayMode",
                    "menuItem:exposeArticle",
                    "menuItem:nightMode",
                    "menuItem:openWithQQBrowser"
                ] // 要隐藏的菜单项，所有menu项见附录3
            });
        });

        wx.error(function(res){
            //
        });
    </script>
    <script type="text/javascript" src="cocos2d-js.js"></script>
    <script type="text/javascript" src="main.js"></script>
</body>
</html>